mathematics quadratic formula education learning math logic solving equations mathematical logic math homework help logic philosophy pythagorean theorem algebra